﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QPushButton>
#include <QPainter>
#include <QTextDocument>
#include <QScrollBar>
#include <QCheckBox>
#include <QTimer>
#include <QPalette>
#include <QLabel>
#include <QFile>
#include <QDataStream>
#include "datastorage.h"
#include "datadisplaywidget.h"

#if _MSC_VER >= 1600
#pragma execution_character_set("utf-8")
#endif

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
signals:

private:
    Ui::MainWindow *ui;
    QTimer *timer;
    QPushButton *button;
    QPushButton *buttonOpen;
    QCheckBox *checkBox;
    QLabel *label1;
    CDataWidget *dataWidget;
//    QScrollBar *scrollBar;
private slots:
    void OnClickBt1();
    void OnClickBt2();
    void OnTime1out();
};

#endif // MAINWINDOW_H
